package tuan.core.extract;

import java.util.HashMap;
import java.util.Map;

public class ConfigConst {
	public static Map<String, Double> tagRules = new HashMap<String, Double>();
	public static Map<Object, Double> sizeRules = new HashMap<Object, Double>();
	public static Map<String, Double> textRules = new HashMap<String, Double>();
	public static String attrTitlePattern = "title|biaoti|today|tuangou";
	public static double LE_LEN_SCORE = -10.0;
	public static int LE_LEN = 10;
	public static double GE_LEN_SCORE = -1.0;
	public static int GE_LEN = 100;
	public static double HAS_NUM_DIR_SCORE = 1.0;
	public static int IMG_MIN_SIZE_WIDTH = 300;
	public static double IMG_MIN_SIZE_WIDTH_SCORE = 1.0;
	public static int IMG_MIN_SIZE_HEIGHT = 200;
	public static double IMG_MIN_SIZE_HEIGHT_SCORE = 1.0;
	public static int FONT_MIN_SIZE = 25;
	public static double FONT_MIN_SIZE_SCORE = 9.0;
	public static String addrPattern = "(清河|小营|西北旺|上地|马连洼|西二旗|西三旗|中关村|北大清华|五道口|二里庄|西苑|香山|万柳|万泉河|世纪城|四季青|苏州街|人民大学|学院路|知春路|双榆树|蓟门桥|北太平庄|牡丹园|马甸|魏公村|皂君庙|万寿寺|紫竹桥|西直门|白石桥|交通大学|航天桥|花园桥|甘家口|田村|定慧寺|永定路|五棵松|万寿路|公主坟|军博|北苑|来广营|望京|花家地|酒仙桥|大山子|北沙滩|健翔桥|大屯|小营|亚运村|奥运村|小关|安贞|惠新里|和平街|柳芳|芍药居|西坝河|国展|三元桥|左家庄|太阳宫|燕莎|朝阳公园|工体|三里屯|东大桥|朝外|团结湖|呼家楼|水碓子|甜水园|石佛营|十里堡|甘露园|朝青板块|东坝|红庙|八里庄|CBD|国贸|西大望路|四惠|高碑店|定福庄|常营|管庄|潘家园|劲松|双井|百子湾|垡头|豆各庄|十八里店|小红门|西直门|新街口|积水潭|德胜门|小西天|后海|什刹海|六铺炕|车公庄|百万庄|官园|展览路|阜成门|三里河|月坛|南礼士路|木樨地|复兴门|金融街|西单|西四|西便门|前门|崇文门|花市|天坛|广渠门|体育馆路|法华寺|龙潭湖|光明楼|永定门|沙子口|长椿街|宣武门|和平门|前门|西客站|马连道|红莲|广安门|牛街|菜市口|虎坊桥|天桥|白纸坊|南菜园|陶然亭|右安门|六里桥|马连道|西客站|刘家窑|蒲黄榆|赵公口|宋家庄|方庄|左安门|青塔|岳各庄|玉泉营|草桥|马家堡|角门|洋桥|西罗园|木樨园|大红门|成寿寺|长辛店|卢沟桥|北大地|丰台路|丰台体育馆|丽泽桥|菜户营|右安门|花乡|科技园区|新发地|南苑|世界公园|西山|五里坨|广宁|模式口|金顶街|苹果园|杨庄|古城|八角|鲁谷|老山|衙门口|玉泉路|房山城关|良乡|窦店|迎风|长阳|阎村|韩村河|黄村|西红门|旧宫|亦庄|庞各庄|北苑|新华大街|果园|梨园|梨园城铁|临河里|潞城|北关环岛|玉桥|乔庄|土桥|九棵树|武夷花园|马驹桥|后沙峪|机场|胜利|光明|石园|仁和|杨镇|天竺|李桥|新国展|马坡|南彩|龙泽|沙河镇|回龙观|霍营|小汤山|北七家|天通苑|立水桥|昌平县城|南口|城南|城北|马池口|阳坊|百善|南邵|兴寿|十三陵|长陵|密云|十里堡|北庄|古北口|不老屯|溪翁庄|太师屯|新城子|穆家峪|泉河|庙城|雁栖|怀柔|杨宋|北房|怀北|渤海镇|九渡河|汤河口|桥梓|延庆|康庄|八达岭|大榆树|永宁|滨河|兴谷|渔阳|峪口|金海湖|平谷镇|马昌营|东高村|镇罗营|刘家店|王辛庄|黄松峪|熊儿寨|大峪|城子街道|东辛房|龙泉|永定|军庄|潭柘寺|妙峰山|清水)";
	static {
		textRules.put("[仅只才]?[需要售]?[0-9-]+元?", 1.0);
		textRules.put("现价?[0-9-]+元?", 1.0);
		textRules.put("[0-9-]+折", 1.0);
		textRules.put("原价[0-9-]+元?", 1.0);
		textRules.put("特价", 1.0);
		textRules.put("今日团购", 1.0);
		textRules.put("代金", 1.0);
		textRules.put("优惠", 1.0);

		tagRules.put("H1", 10.0);
		tagRules.put("H2", 9.0);
		tagRules.put("H3", 8.0);
		tagRules.put("H4", 7.0);
		tagRules.put("H5", 6.0);
		tagRules.put("H6", 5.0);

		sizeRules.put(32, 10.0);
		sizeRules.put(31, 10.0);
		sizeRules.put(30, 10.0);
		sizeRules.put(29, 9.0);
		sizeRules.put(28, 9.0);
		sizeRules.put(27, 8.0);
		sizeRules.put(26, 7.0);
		sizeRules.put(25, 6.0);
	}
}
